//
//  AppDelegate.m
//  Objc进阶Demo
//
//  Created by Don't update on 2018/7/14.
//  Copyright © 2018年 Don't update. All rights reserved.
//

#import "AppDelegate.h"
#import "ViewController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate

//在应用程序启动后,要执行的委托调用
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSLog(@"程序启动");
    ViewController *vc = [[ViewController alloc]init];
    UINavigationController *navVC = [[UINavigationController alloc]initWithRootViewController:vc];
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.rootViewController = navVC;
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}

//在应用程序启动后,要执行的委托调用
- (void)applicationWillResignActive:(UIApplication *)application {
   NSLog(@"程序将要启动");
}

//在应用程序已经进入后台程序时调用
- (void)applicationDidEnterBackground:(UIApplication *)application {
    NSLog(@"程序进入后台");
}

//在应用程序将要有进入前台激活时被执行调用
- (void)applicationWillEnterForeground:(UIApplication *)application {
    NSLog(@"程序重新激活");
}

//在应用程序已经被激活调用
- (void)applicationDidBecomeActive:(UIApplication *)application {
     NSLog(@"程序完成激活");
}

//在应用程序完全退出时调用
- (void)applicationWillTerminate:(UIApplication *)application {
     NSLog(@"完全退出");
}


@end
